<template>
  <div class="cloud_home">
    <div class="home_center">
      <div class="center_left">
        <div class="title">服务器信息</div>
        <ServerInfo />
      </div>
      <div class="center_right">
        <div class="title">桌面连接状态</div>
         <SocketEchart/>
      </div>
    </div>
    <div class="home_bottom">
      <div class="bottom_left">
        <div class="title">CPU利用率</div>
        <CpuEchart />
      </div>
      <div class="bottom_right">
        <div class="title">内存利用率</div>
        <StorageEchart />
      </div>
    </div>
  </div>
</template>
<script setup>
import CpuEchart from '@/components/CpuEchart.vue'
import StorageEchart from '@/components/StorageEchart.vue'
import ServerInfo from '../../components/serverInfo.vue'
import SocketEchart from '../../components/socketEchart.vue'
</script>
<style lang="less" scoped>
.cloud_home {
  flex: 1;
  padding: 20px;
  overflow: hidden;
  //   outline: 1px solid red;
  .home_head {
    width: 100%;
    height: 33%;
    display: flex;
    justify-content: space-between;
    .head_left,
    .head_center,
    .head_right {
      width: 32.8%;
      height: 100%;
      display: flex;
      flex-direction: column;
      background: gainsboro;
      .title {
        width: 100%;
        height: 10%;
        background: #e6ebfa;
      }
    }
    .head_center {
      margin: 0 10px;
    }
  }
  .home_center {
    width: 100%;
    height: 50%;
    display: flex;
    margin: 10px 0;
    justify-content: space-between;
    .center_left {
      width: 40%;
      height: 100%;
      display: flex;
      flex-direction: column;
      background: gainsboro;
      .title {
        width: 100%;
        height: 10%;
        background: #e6ebfa;
        display: flex;
        align-items: center;
        padding-left: 5px;
        font-size: 20px;
        font-weight: bold;
      }
    }
    .center_right {
      width: 59%;
      height: 100%;
      display: flex;
      flex-direction: column;
      background: gainsboro;
      .title {
        width: 100%;
        height: 10%;
        background: #e6ebfa;
        display: flex;
        align-items: center;
        padding-left: 5px;
        font-size: 20px;
        font-weight: bold;
      }
    }
  }
  .home_bottom {
    width: 100%;
    height: 49%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    .bottom_left {
      width: 39%;
      height: 100%;
      display: flex;
      flex-direction: column;
      background: gainsboro;

      .title {
        width: 100%;
        height: 10%;
        background: #e6ebfa;
        display: flex;
        align-items: center;
        font-size: 20px;
        font-weight: bold;
        padding-left: 5px;
      }
    }
    .bottom_right {
      width: 60%;
      height: 100%;
      display: flex;
      flex-direction: column;
      background: gainsboro;
      .title {
        width: 100%;
        height: 10%;
        background: #e6ebfa;
        display: flex;
        align-items: center;
        font-size: 20px;
        font-weight: bold;
        padding-left: 5px;
      }
    }
  }
}
</style>
